import request from "@/utils/request";

// 分页查询
export function listForPage(data) {
    return request({
        url: '/system/api/dictType/findDictTypeByCond',
        method: 'Post',
        data
    })
}

// 不分页查询
export function selectAllDictType() {
    return request({
        url: '/system/api/dicType/selectAllDictType',
        method: 'get'
    })
}

export function addDictType(data) {
    return request({
        url: '/system/api/dictType/addDictType',
        method: 'post',
        params: data
    })
}
export function updateDictType(data) {
    return request({
        url: '/system/api/dictType/updateDictType',
        method: 'post',
        data
    })
}
// 查询一个
export function getDictTypeById(id) {
    return request({
        url: `/system/api/dictType/getDictTypeByDictTypeId/${id}`,
        method: 'post'
    })
}
// 删除
export function deleteDictTypeByIds(ids) {
    return request({
        url: `/system/api/dictType/deleteDictTypeByDictTypeIds/${ids}`,
        method: 'delete'
    })
}